package com.bdqn.mapper;

import com.bdqn.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    /**
     * 根据用户名查找用户
     * @param username
     * @return
     */
    public User findByUsername(String username);

    /**
     * 修改用户密码
     * @param user
     * @return
     */
    public int editPassword(User user);

    List<User> getList(Map<String,Object> queryMap);
    int getTotal(Map<String,Object> queryMap);
    int add(User user);
    int edit(User user);
    int delete(String user);
}
